Saltar para o conteúdo principal
POST
/
public
/
v1
/
offsite-ads
/
audiences
/
user-list
[BETA] Create offsite user list audience job.
curl --request POST \
  --url https://api.topsort.com/public/v1/offsite-ads/audiences/user-list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "This is a user list audience description."
}
'
{
  "jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>"
}

Autorizações

Authorization
string
header
obrigatório

A valid API key generated in Topsort's UI.

Parâmetros de consulta

vendor_id
string
obrigatório

The ID of the vendor to create the audience job for.

Exemplo:

"vendor_123"

dsp
enum<string>
obrigatório

The DSP to create the audience job for.

Opções disponíveis:
google_ads,
meta
Exemplos:

"google_ads"

"meta"

Corpo

application/json
name
string
obrigatório

The name of the user list audience.

Minimum string length: 1
Exemplo:

"My user list audience"

description
string | null

The description of the user list audience.

Minimum string length: 1
Exemplo:

"This is a user list audience description."

Resposta

Successful Response

jobId
string<uuid>
obrigatório

The unique identifier for the queued job.

Exemplo:

"123e4567-e89b-12d3-a456-426614174000"

url
string
obrigatório

The presigned url to upload the audience csv file. Presigned url must be used with PUT method and include the header Content-Type: text/csv.

Exemplo:

"https://offsite-ads-user-list-uploads.s3.us-east-2.amazonaws.com/123e4567-e89b-12d3-a456-426614174000.csv"